package com.chushouya.order.dto.api.quality;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 质检项目提交DTO
 */
@Data
@ApiModel("质检项目提交信息")
public class QualityItemSubmitDTO {

    @ApiModelProperty(value = "评估项ID", required = true)
    @NotNull(message = "评估项ID不能为空")
    private Long attrId;

    @ApiModelProperty(value = "评估项名称")
    private String attrName;

    @ApiModelProperty(value = "质检选中的选项值ID列表", required = true)
    @NotNull(message = "质检选项值不能为空")
    private List<Long> qualityValueIds;

    @ApiModelProperty(value = "质检选项值列表")
    private List<String> qualityValues;

    @ApiModelProperty(value = "质检备注")
    private String qualityRemark;
}
